<template>
  <div class="view">
    <div>
      <img class="top" src="../assets/banner-top.png">
      <img class="top logo1" src="../assets/banner-logo1.png">
      <img class="top logo2" style="opacity: 0;" src="../assets/banner-logo2.png">
    </div>
    <div class="viewTop">
        <div class="colse" @click="goBack"><img src="../assets/close.png"></div>
        <h3>狮粉话语</h3>
        <span @click="$router.push('/view')" class="sendBtn edit">发布</span>
    </div>
    <div class="discourse">
        <div class="discourse_cont">
            <div class="head">
                <img class="userImg" src="../assets/user.png" alt="">
                <b class="name">风轻云淡</b>
            </div>
            <p class="content">和东风标致4008一起，遇见了多种自己，我想要的还有很多， XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。</p>
            <div class="imgBox">
                <img src="../assets/car.png" width="100%">
            </div>
            <div class="funBox">
                <span class="time">1小时前</span>
                <span class="like"><i class="fa fa fa-heart" aria-hidden="true"></i> 11</span>
                <span class="commenting"><i class="fa fa-commenting" aria-hidden="true"></i> 22</span>
            </div>
        </div>
        <div class="replyBox">
            <div class="item">
                <div class="head">
                    <img class="userImg" src="../assets/user.png" alt="">
                    <div class="name-time">
                        <b class="name">宁静致远</b>
                        <span class="time">05-25 15:32</span>
                    </div>
                    <div class="praise"><i class="fa fa-thumbs-up" aria-hidden="true"></i> 11</div>
                </div>
                <p class="content">和东风标致4008一起，遇见了多种自己，我想要的还有很多， XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX。</p>
            </div>
        </div>
    </div>
  </div>
</template>
<script>
export default {
  data () {
      return {
        
      }
  },
  methods: {
        goBack () {
            this.$router.back(-1);
        },
  },
}
</script>
<style lang="scss" type="text/scss" scoped>
  body {
    background: #fff;
  }
    .view{
        .top {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 2;
        }
        .viewTop{
            margin-top: 8vw;
            height: 8vh;
            width: 100%;
            background: url(../assets/viewTop.png) no-repeat center center;
            background-size: 100% auto;
            overflow: hidden;
            position: relative;
            color: #fff;
            .colse{
                float: left;
                width: 3.5vw;
                height: 3.5vw;
                margin: 2.4vh 0 0 4vw;
            }
            > h3 {
                position: absolute;
                top: 0;  
                left: 50%;
                width: 50vw;
                height: 8vh;
                line-height: 8vh;
                margin-left: -25vw;
                text-align:center;
            }
            .sendBtn{
                float: right;
                margin: 2.4vh 4vw 0 0;
                background: none;
                border: none;color: #fff;
                &.edit{
                    padding-right: 5vw;
                    background: url(../assets/edit.png) no-repeat right center;
                    background-size: 4vw auto;
                }
            }
        }
        .discourse{
            padding: 3vw;
            .discourse_cont{
                padding-bottom: 4vh;
                border-bottom: solid 1px #ccc;
                .head{
                    overflow: hidden;
                    .userImg{
                        width: 12vw;height: 12vw;margin-right: 4vw;
                        float: left;
                    }
                    .name{
                        font-size: 14px;font-weight: bold;color: #333;
                        line-height: 12vw;
                        float: left;
                    }
                }
                .content{
                    font-size: 12px;color:#333;
                    margin: 1vw 0;
                    line-height: 1.5;
                }
                .funBox{
                    overflow: hidden;
                    .time{
                        padding: 1px 8px;
                        font-size: 12px;
                        margin-top: 5px;
                        background: #f0eded;
                        border-radius: 10px;
                        float: left;
                    }
                    .like{
                        float: right;
                        font-size: 12px;
                        margin-top: 5px;
                        .fa{font-size: 14px;}
                    }
                    .commenting{
                        float: right;
                        font-size: 12px;
                        margin-top: 5px;
                        margin-right: 3vw;
                        .fa{font-size: 14px;}
                    }
                }

            }
            .replyBox{
                padding:3vh 3vw 0;
                .item{
                    margin-bottom: 3vw;
                    .head{
                        overflow: hidden;
                        .userImg{
                            width: 12vw;height: 12vw;margin-right: 4vw;
                            float: left;
                        }
                        .name-time{
                            float: left;
                            .name{
                                display: block;font-size: 14px;font-weight: bold;
                                margin-top: 3vw;line-height: 1;
                            }
                            .time{
                                font-size: 12px;line-height: 1;
                            }
                        }
                        .praise{
                            float: right;
                            font-size: 16px;
                            margin-top: 2vw;
                        }
                    }
                    .content{
                        font-size: 12px;
                        padding: 1vw 0;
                    }
                }
            }
        }

    }
</style>
